class CreateRights < ActiveRecord::Migration
  def self.up
    create_table :rights do |t|
      t.boolean :self_create
      t.boolean :self_approve
      t.boolean :self_edit
      t.boolean :other_create
      t.boolean :other_approve
      t.boolean :other_edit
      t.integer :user_id

      t.timestamps
    end
  end

  def self.down
    drop_table :rights
  end
end
